﻿using System;
using System.Net;

namespace PushService
{
    public class Demande
    {
        public int ID_Demande { get; set; }

        public int ID_Client { get; set; }

        public int ID_Taxi { get; set; }

        public int ID_Etat { get; set; }

        public decimal Longitude_Origine { get; set; }

        public decimal Latitude_Origine { get; set; }

        public string Adresse_Origine { get; set; }

        public decimal Longitude_Destination { get; set; }

        public decimal Latitude_Destination { get; set; }

        public string Adresse_Destination { get; set; }

        public int Nombre_Personne { get; set; }

        public DateTime Date_Debut { get; set; }

        public DateTime Date_Fin { get; set; }

        public double Distance { get; set; }
        
        public Demande()
        {
            
        }

        public Demande(int IDDemande, int IDClient, int IDEtat, decimal LongitudeOrigine, decimal LatitudeOrigine, string AdresseOrigine, decimal LongitudeDestination, decimal LatitudeDestination, string AdresseDestination, int NombrePersonne, DateTime DateDebut)
        {
            this.ID_Demande = IDDemande;
            this.ID_Client = IDClient;
            this.ID_Etat = IDEtat;
            this.Longitude_Origine = LongitudeOrigine;
            this.Latitude_Origine = LatitudeOrigine;
            this.Adresse_Origine = AdresseOrigine;
            this.Longitude_Destination = LongitudeDestination;
            this.Latitude_Destination = LatitudeDestination;
            this.Adresse_Destination = AdresseDestination;
            this.Nombre_Personne = NombrePersonne;
            this.Date_Debut = DateDebut;
        }

        public Demande(int IDDemande, int IDClient, int IDEtat, decimal LongitudeOrigine, decimal LatitudeOrigine, string AdresseOrigine, decimal LongitudeDestination, decimal LatitudeDestination, string AdresseDestination, int NombrePersonne, DateTime DateDebut, double distance)
        {
            this.ID_Demande = IDDemande;
            this.ID_Client = IDClient;
            this.ID_Etat = IDEtat;
            this.Longitude_Origine = LongitudeOrigine;
            this.Latitude_Origine = LatitudeOrigine;
            this.Adresse_Origine = AdresseOrigine;
            this.Longitude_Destination = LongitudeDestination;
            this.Latitude_Destination = LatitudeDestination;
            this.Adresse_Destination = AdresseDestination;
            this.Nombre_Personne = NombrePersonne;
            this.Date_Debut = DateDebut;
            this.Distance = distance;
        }

    }
}
